home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / OFFSCREE / CPENDULU.H < prev    next >
Text File  |  1992-02-06  |  458b  |  26 lines

  1. /****
  2.  * CPendulumObj.h
  3.  *
  4.  *    Class for a pendulum.
  5.  *
  6.  ****/
  7.  
  8. #define _H_CPendulumObj            /* Include this file only once */
  9.  
  10. struct CPendulumObj : indirect {
  11.  
  12.         /* Instance variables */
  13.     short    hLoc,vLoc,hOffset,vOffset;    
  14.  
  15.     CIconHandle    truckIcon;
  16.  
  17.         /* methods */
  18. virtual    void IPendulumObj (short anHLoc, short aVLoc, short anHOffset, short aVOffset);
  19.  
  20. virtual    void Draw(Rect *area);
  21.  
  22. virtual    void GoLeft(short amount);
  23. virtual    void GoRight(short amount);
  24.  
  25. };
  26.